package io.gitee.zicai.bus.sample.service;

import io.gitee.zicai.bus.sample.cmd.CmdReceiveData;
import io.gitee.zicai.bus.sample.cmd.ICmdReceiver;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * CmdReceiver
 *
 * @author zicai
 * @since 2021-04-02
 */
@Slf4j
@Component
public class CmdReceiver implements ICmdReceiver {

    @Override
    public void receiveHello(CmdReceiveData receiveData) {
        log.info(">>> receiveHello data -> {}", receiveData.getData());
    }
}
